package basis;

public class ConcreteHandlerC implements Handler{
    @Override
    public void handleRequest(int request) {
        if (request>=20){
            System.out.println("ConcreteHandlerC 处理请求：" + request);
        }else {
            System.out.println("无法处理请求：" + request);
        }
    }

    //责任链末端,可不设置下一个处理器
    @Override
    public void setNextHandler(Handler handler) {

    }
}
